Optimal. Leaf size=61 \[ \frac{(4 a-b) \sinh (c+d x) \cosh (c+d x)}{8 d}+\frac{1}{8} x (4 a-b)+\frac{b \sinh (c+d x) \cosh ^3(c+d x)}{4 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0488858, antiderivative size = 61, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.19, Rules used = {3191, 385, 199, 206} \[ \frac{(4 a-b) \sinh (c+d x) \cosh (c+d x)}{8 d}+\frac{1}{8} x (4 a-b)+\frac{b \sinh (c+d x) \cosh ^3(c+d x)}{4 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3191
Rule 385
Rule 199
Rule 206
Rubi steps
\begin{align*} \int \cosh ^2(c+d x) \left (a+b \sinh ^2(c+d x)\right ) \, dx &=\frac{\operatorname{Subst}\left (\int \frac{a-(a-b) x^2}{\left (1-x^2\right )^3} \, dx,x,\tanh (c+d x)\right )}{d}\\ &=\frac{b \cosh ^3(c+d x) \sinh (c+d x)}{4 d}+\frac{(4 a-b) \operatorname{Subst}\left (\int \frac{1}{\left (1-x^2\right )^2} \, dx,x,\tanh (c+d x)\right )}{4 d}\\ &=\frac{(4 a-b) \cosh (c+d x) \sinh (c+d x)}{8 d}+\frac{b \cosh ^3(c+d x) \sinh (c+d x)}{4 d}+\frac{(4 a-b) \operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\tanh (c+d x)\right )}{8 d}\\ &=\frac{1}{8} (4 a-b) x+\frac{(4 a-b) \cosh (c+d x) \sinh (c+d x)}{8 d}+\frac{b \cosh ^3(c+d x) \sinh (c+d x)}{4 d}\\ \end{align*}
Mathematica [A] time = 0.0695163, size = 43, normalized size = 0.7 \[ \frac{8 a \sinh (2 (c+d x))+16 a c+16 a d x+b \sinh (4 (c+d x))-4 b d x}{32 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.026, size = 70, normalized size = 1.2 \begin{align*}{\frac{1}{d} \left ( b \left ({\frac{\sinh \left ( dx+c \right ) \left ( \cosh \left ( dx+c \right ) \right ) ^{3}}{4}}-{\frac{\cosh \left ( dx+c \right ) \sinh \left ( dx+c \right ) }{8}}-{\frac{dx}{8}}-{\frac{c}{8}} \right ) +a \left ({\frac{\cosh \left ( dx+c \right ) \sinh \left ( dx+c \right ) }{2}}+{\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.00693, size = 103, normalized size = 1.69 \begin{align*} \frac{1}{8} \, a{\left (4 \, x + \frac{e^{\left (2 \, d x + 2 \, c\right )}}{d} - \frac{e^{\left (-2 \, d x - 2 \, c\right )}}{d}\right )} - \frac{1}{64} \, b{\left (\frac{8 \,{\left (d x + c\right )}}{d} - \frac{e^{\left (4 \, d x + 4 \, c\right )}}{d} + \frac{e^{\left (-4 \, d x - 4 \, c\right )}}{d}\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.45926, size = 153, normalized size = 2.51 \begin{align*} \frac{b \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{3} +{\left (4 \, a - b\right )} d x +{\left (b \cosh \left (d x + c\right )^{3} + 4 \, a \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )}{8 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.14033, size = 150, normalized size = 2.46 \begin{align*} \begin{cases} - \frac{a x \sinh ^{2}{\left (c + d x \right )}}{2} + \frac{a x \cosh ^{2}{\left (c + d x \right )}}{2} + \frac{a \sinh{\left (c + d x \right )} \cosh{\left (c + d x \right )}}{2 d} - \frac{b x \sinh ^{4}{\left (c + d x \right )}}{8} + \frac{b x \sinh ^{2}{\left (c + d x \right )} \cosh ^{2}{\left (c + d x \right )}}{4} - \frac{b x \cosh ^{4}{\left (c + d x \right )}}{8} + \frac{b \sinh ^{3}{\left (c + d x \right )} \cosh{\left (c + d x \right )}}{8 d} + \frac{b \sinh{\left (c + d x \right )} \cosh ^{3}{\left (c + d x \right )}}{8 d} & \text{for}\: d \neq 0 \\x \left (a + b \sinh ^{2}{\left (c \right )}\right ) \cosh ^{2}{\left (c \right )} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.12573, size = 124, normalized size = 2.03 \begin{align*} \frac{8 \,{\left (d x + c\right )}{\left (4 \, a - b\right )} + b e^{\left (4 \, d x + 4 \, c\right )} + 8 \, a e^{\left (2 \, d x + 2 \, c\right )} -{\left (24 \, a e^{\left (4 \, d x + 4 \, c\right )} - 6 \, b e^{\left (4 \, d x + 4 \, c\right )} + 8 \, a e^{\left (2 \, d x + 2 \, c\right )} + b\right )} e^{\left (-4 \, d x - 4 \, c\right )}}{64 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]